<h1>Interesses</h1>

<?php echo $this->Html->link('Adicionar Interesse', array('controller' => 'interests', 'action' => 'add')); ?>

<table>
	<tr>
		<th>Id</th>
		<th>Nome</th>
		<th>Descrição</th>			
	</tr>
	
	<?php foreach ($interests as $interest): ?>
	
	<tr>
		<td><?php echo $interest['Interest']['id']; ?></td>
		<td><?php echo $this->Html->link($interest['Interest']['name'], array('controller' => 'interests', 'action' => 'view', $interest['Interest']['id'])); ?></td>
		<td><?php echo $interest['Interest']['description']; ?></td>
		<td><?php echo $interest['Interest']['created']; ?></td>
		<td><?php echo $interest['Interest']['modified']; ?></td>
		<td><?php echo $this->Html->link('Editar', array('action' => 'edit', $interest['Interest']['id'])); ?></td>
		<td><?php echo $this->Form->postLink('Apagar', array('action' => 'delete', $interest['Interest']['id']), array('confirm' => 'Tem certeza de que deseja apagar o interesse?')); ?></td>
	</tr>
	
	<?php endforeach; ?>
</table>	 
